package cn.edu.fudan.type;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 80494 on 2017/4/20.
 */
public class Timeseries {
    //tested
    private List<Double> timestamp = new ArrayList<Double>();
    private List<Double> value = new ArrayList<Double>();
    private Integer label = 0;
    private Double average = 0.0;
    private Double variance = 0.0;

    public List<Double> getTimestamp(){
        return timestamp;
    }
    public List<Double> getValue(){
        return value;
    }
    public Integer getLabel(){
        return  label;
    }
    public Double getAverage(){
        return average;
    }
    public Double getVariance(){
        return variance;
    }

    public void setTimestamp(List<Double> timestamp){
        this.timestamp = timestamp;
    }
    public void setValue(List<Double> value){
        this.value=value;
    }
    public void setLabel(Integer label){
        this.label = label;
    }
    public void setAverage(Double average){
        this.average = average;
    }
    public void setVariance(Double variance){
        this.variance = variance;
    }

    public void clear(){
        this.timestamp = new ArrayList<Double>();
        this.value = new ArrayList<Double>();
        this.label = 0;
        this.average = 0.0;
        this.variance = 0.0;
    }
    @Override
    public String toString(){
        return "label: " +label + "\naverage: "+average+"\nvariance"+variance+"\nvalue:"+value+"\ntimestamp: "+timestamp;
    }

}
